package com.zxl.soft.generator.test.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxl.soft.generator.test.entity.ChineseWord;
import com.zxl.soft.generator.test.param.ChineseWordQueryParam;
import com.zxl.soft.generator.test.vo.ChineseWordQueryVo;
import com.zxl.soft.generator.test.param.ChineseWordQueryNonePageParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

/**
 * <pre>
 *  Mapper 接口
 * </pre>
 *
 * @author zhaoxl
 * @since 2021-08-12
 */
@Repository
public interface ChineseWordMapper extends BaseMapper<ChineseWord> {

    /**
     * 根据ID获取查询对象
     *
     * @param id
     * @return
     */
    ChineseWordQueryVo getChineseWordById(Serializable id);

    /**
    * 获取分页对象
    *
    * @param page
    * @param chineseWordQueryParam
    * @return
    */
    IPage<ChineseWordQueryVo> getChineseWordPageList(@Param("page") Page page, @Param("param") ChineseWordQueryParam chineseWordQueryParam);

    /**
    * 获取集合对象
    *
    * @param chineseWordQueryNonePageParam
    * @return
    */
    List<ChineseWordQueryVo> getChineseWordList( @Param("param") ChineseWordQueryNonePageParam chineseWordQueryNonePageParam);

}
